package com._520it.crm.service.impl;

import com._520it.crm.domain.ClientEle;
import com._520it.crm.mapper.ClientEleMapper;
import com._520it.crm.service.IClientEleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ClientEleServiceImpl implements IClientEleService{
	@Autowired
	private ClientEleMapper mapper;
	public int deleteByPrimaryKey(Long id) {
		return mapper.deleteByPrimaryKey(id);
	}

	public int insert(ClientEle record) {
		return mapper.insert(record);
	}

	public ClientEle selectByPrimaryKey(Long id) {
		return mapper.selectByPrimaryKey(id);
	}

	public List<ClientEle> selectAll() {
		return mapper.selectAll();
	}

	public int updateByPrimaryKey(ClientEle record) {
		return mapper.updateByPrimaryKey(record);
	}

	@Override
	public List<ClientEle> selectPage(int current, int size, String name, String nature, String antiLaunGrade, String papersType, String papersNum, String address, String aReplenish, String tel) {
		return mapper.selectPage(current,size,name,nature,antiLaunGrade,papersType,papersNum,address,aReplenish,tel);
	}

	@Override
	public int selectPageCount(int current, int size, String name, String nature, String antiLaunGrade, String papersType, String papersNum, String address, String aReplenish, String tel) {
		return mapper.selectPageCount(current,size,name,nature,antiLaunGrade,papersType,papersNum,address,aReplenish,tel);
	}

}
